<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>秀恩爱-上传甜蜜合影</title>
<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/header.css">
<link rel="stylesheet" type="text/css" href="css/story_user.css">
<link href="css/footer.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.11.3.min.js"></script>
<script src="core/jquery.min.js"></script>
<script src="js/ajaxfileupload.js"></script>


</head>

<body>
	<header>
		<script src="js/header.js"></script>
	</header>
	<script>var uls=document.getElementsByClassName("menu_more");
        for(var i=0;i<uls.length;i++){
            uls.item(i).onmouseover=function(){
                this.getElementsByTagName("ul")[0].style.display="block";
            }
            uls.item(i).onmouseout=function(){
                this.getElementsByTagName("ul")[0].style.display="none";
            }
        }
        window.onload=function(){
        $.post("regLogServlet?t="+new Date(),{op:"getUserLoginInfo"},function(data){
		var str="";
		var pic="";
		
		if(data==0){ //没有登录
			str="<p><a href='register.html' class='set'>注册</a><a href='login.html' class='up'>登录</a></p>"
			pic="<a class='upload selfProfile' href='#'><img width='80' height='100' src='images/hzh2.png'></a><div class='link'><a class='lYellow' href='#'>编辑资料</a><a class='LGray' href='#'>认证</a></div>";
		}else{
			str="<p><a style='color:red' href='mybaihee.jsp' class='set'>"+data.loginUserInfo[0].NICKNAME+"</a><a href='login.html' class='up'>[切换用户]</a></p>"
			if(data.loginUserInfo[0].TOUXIANG==null){
				pic="<a class='upload selfProfile' href='#'><img width='80' height='100' src='images/hzh2.png'></a><div class='link'><a class='lYellow' href='#'>编辑资料</a><a class='LGray' href='#'>认证</a></div>";
			}else{
				pic="<a class='upload selfProfile' href='#'><img width='80' height='100' src='"+data.loginUserInfo[0].TOUXIANG+"'></a><div class='link'><a class='lYellow' href='#'>编辑资料</a><a class='LGray' href='#'>认证</a></div>";
			}
		}
		$(".setUp").html(str);
		$(".pic").html(pic);
	},"json");}
	</script>

	<div id="baihe_page">
		<div id="baihe_content" class="cols_bj">
			<div id="baihe_col1">
				<div class="subNav">
					<div class="pic">
						<a class="upload selfProfile" href="#"> <img width="80"
							height="100" alt="" src="images/hzh2.png"> <span
							id="uploadPhoto" style="display: none;">上传形象照</span> </a>
						<div class="link">
							<a class="lYellow" href="#">编辑资料</a> <a class="LGray" href="#/">认证</a>
						</div>
					</div>
					<div class="menuCont skBg1">
						<div class="title">
							<a href="#">我的百合</a>
						</div>
					</div>
					<div class="menuCont skBg2">
						<div class="title">
							<a href="#">会员服务</a>
						</div>
						<ul>
							<li><a href="#"> <span>·</span> 我的订单 </a></li>
							<li><a href="#"> <span>·</span> 水晶会员 </a></li>
							<li><a href="#"> <span>·</span> 至尊会员 </a></li>
							<li><a href="#"> <span>·</span> 金至尊会员 </a></li>
							<li><a href="#" target="_blank"> <span>·</span> 红娘一对一服务
							</a></li>
							<li><a href="#"> <span>·</span> 购买红豆 </a></li>
							<li><a href="#"> <span>·</span> 焦点明星 </a></li>
							<li class="menuHYFF" style="display:none">
							<li class="menuHYFF" style="display:none">
							<li id="zhuiqiu3" class="menuHYFF" style="display:none">
							<li class="menuHYFF" style="display:none">
							<li class="menuHYFF" style="display:none">
						</ul>
						<div class="more">
							<a class="downIcon" href="#">更多</a>
						</div>
					</div>
					<div class="menuCont skBg3">
						<div class="title">
							<a href="#">百合应用</a>
						</div>
						<ul>
							<li><a href="#"> <span>·</span> 恋爱帮帮忙 <img width="22"
									height="10" alt="new" src="images/new.gif"> </a></li>
							<li><a href="#"> <span>·</span> 丘比特之箭 <img width="22"
									height="10" alt="new" src="images/new.gif"> </a></li>
							<li><a href="#"> <span>·</span> 幸运宝藏 <img width="22"
									height="10" alt="new" src="images/new.gif"> </a></li>
							<li><a href="#"> <span>·</span> 百合说说 </a></li>
							<li><a href="#"> <span>·</span> 成长俱乐部 <img width="22"
									height="10" alt="new" src="images/new.gif"> </a></li>
							<li><a href="#"> <span>·</span> 赚取红豆 </a></li>
							<li><a href="#"> <span>·</span> 相亲助手 </a></li>
							<li><a href="#"> <span>·</span> 恋爱ing </a></li>
							<li><a href="#"> <span>·</span> 花瓣抽奖 </a></li>
							<li class="menuBHYY" style="display:none">
							<li class="menuBHYY" style="display:none">
						</ul>
						<div class="more">
							<a class="downIcon" href="#">更多</a>
						</div>
					</div>
					<div class="menuCont">
						<div class="title">
							<a href="#">百合帐户</a>
						</div>
						<ul>
							<li><a href="#"> <span>·</span> 实名认证 </a></li>
							<li><a href="#"> <span>·</span> 择偶意向 </a></li>
							<li><a href="#"> <span>·</span> 帐号设置 </a></li>
							<li><a href="#"> <span>·</span> 修改密码 </a></li>
							<li><a href="#"> <span>·</span> 黑名单 </a></li>
						</ul>
					</div>
					<div class="leftAd">
						<img src="images/storyadv1.jpg" />
					</div>
				</div>
			</div>

			<div id="baihe_col6">
				<div class="list_subnav">
					<ul>
						<li><a href="uploadstory.jsp">编辑成功故事空间</a>
						</li>
						<li><a href="uploadstory2.html">上传成功故事</a>
						</li>
						<li class="now"><a href="#">上传甜蜜合影</a>
						</li>
						<li><a href="uploadstory4sss.jsp">管理甜蜜合影</a>
						</li>
					</ul>
				</div>

				<link rel="stylesheet" href="control/css/zyUpload.css"
					type="text/css">

				<script src="core/zyFile.js"></script>
				<script src="control/js/zyUpload.js"></script>
				<script src="core/lanrenzhijia.js"></script>

				<div id="demo" class="demo" style="width:100%;"></div>

			</div>
			<!--headbaihe_col6-->
			<div id="bannner_bg">
				<div class="ad">
					<a tareget="_blank" href="#"> <img src="images/storyadv2.jpg" />
					</a>
				</div>
			</div>
			<!--AD-->
		</div>
		<!--headContent-->

		<script type="text/javascript" src="js/foot.js" charset='utf-8'></script>
		<!--headFooter-->
	</div>
	<!--点击上传后弹出浮层，提示信息（star）-->
	<div class="pop_bg"
		style="width:488px; margin:-124px 0 0 -244px; text-align:left; display: none;"
		id="block_show">
		<div class="pop_userApp sp10">
			<h3>
				<div class="pop_close"
					onclick="window.location.href='index.php?action=managePhoto';"></div>
				提示
			</h3>
			<div class="popGray" style="padding:15px;">
				<strong style="color:#ff6600">上传照片成功</strong><br />
				温馨提示：照片上传成功后，我们会尽快进行人工审核，通过后即可显示，请耐心等待！<a
					href="index.php?action=uploadPhoto">继续上传照片</a> <br />
				<p
					style="padding:15px 0 0; margin:7px 0 0; border-top:1px dotted #d0d0d0;">您若还没有上传成功故事，回答几个问题，成功故事助手会帮您自动生成一篇成功故事哦！</p>
			</div>
			<div class="pop_btn_center">
				<div class="pop_btn">
					<span><a href="index.php?action=uploadStory">立即上传成功故事</a>
					</span>
				</div>
			</div>
		</div>
	</div>
</html>
<script language="javascript">
    //flash上传完照片后的返回结果    
    function flashCallback(data){
        if(data==1){
            $.blockUI({ message: $('#block_show') });
        }else{
            alert("上传失败");
        }
    }
    var submit_num = 1;
    function submit_form(){
        if(!$("#file1").val() && !$("#file2").val() && !$("#file3").val() && !$("#file4").val() && !$("#file5").val()){
            alert("请至少选择一张照片");
            return false;
        }
        if(submit_num == 1){
            $("#aFrm").submit();
            submit_num += 1;
        }
    }
    
</script>